package Exercise;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class DateTest01 {

    public static void main(String[] args) throws ParseException {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入以yyyy-MM-dd形式的字符串");
        Date date = new Date();
        String num = scanner.next();
        SimpleDateFormat  x1 = new SimpleDateFormat("yyyy-MM-dd");
        SimpleDateFormat  x2 = new SimpleDateFormat("yyyy年MM月dd日");
        System.out.println(x2.format(x1.parse(num)));



    }
}
